package chain.aimpl.old;

import java.util.ArrayList;
import java.util.List;

public class Client {
    public static void main(String[] args) {
        System.out.println(getNames(20));

        System.out.println(getNames(500));

        System.out.println(getNames(1000));

        System.out.println(getNames(30000));
    }

    private static List<String> getNames(int money) {
        List<String> names = new ArrayList<>();

        if (money < 300) {
            names.add("张三");
            names.add("张三老婆");
        }
        if (money < 800) {
            names.add("李四");
            names.add("李四妈妈");
        }
        if (money < 20000) {
            names.add("王五");
            names.add("王五女儿");
        }
        return names;

    }
}
